package io.renren.modules.mybog.dao;

import io.renren.modules.mybog.entity.MessageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author 小🌤
 * @email 1578442339@qq.com
 * @date 2021-03-25 14:51:57
 */
@Mapper
public interface MessageDao extends BaseMapper<MessageEntity> {

    @Select("select count(id) from message where post_id=#{id}")
    long counts(Integer id);
}
